export function set(key:string, value:any) {
  localStorage.setItem(key, JSON.stringify(value))
}

export function get(key:string):any|null {
  let rs = localStorage.getItem(key)
  if (rs != null && rs != 'undefined'){
    return JSON.parse(rs)
  } else {
    return null
  }
}

export function del(key:string) {
  localStorage.removeItem(key)
}
